// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.controller.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.geeke.entity.base.EntityBaseId;
import top.geeke.eunm.SysAccountTypeEnum;
import top.geeke.eunm.SysGenderEnum;
import top.geeke.mapper.dto.MenuOutput;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  用户信息输出参数
 * </p>
 *
 * @author 瞄你个汪
 * @since 2024/6/10 9:22
 */
@Data
@AllArgsConstructor
public class SysUserInfoOutput {
    /**
     * 用户信息
     */
    private SysUserInfo userInfo;
    /**
     * 权限集
     */
    private List<String> permissions;
    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class SysUserInfo extends EntityBaseId {
        private SysAccountTypeEnum accountType;
        private String account;
        private String realName;
        private String mobile;
        private String email;
        private SysGenderEnum sex;
        private Integer age;
        private LocalDateTime birthday;
        private String nickName;
        private String avatar;
        private String nation;
        private String origin;
        private String jobNum;
        private Long posId;
        private String posLevel;
        private String posTitle;
        private Long orgId;
        private String orgType;
        private String orgName;
        private Integer loginCount;
        private String lastLoginIp;
        private String lastLoginTime;
        private String lastLoginDevice;
        private String lastLoginAddress;
    }
}
